package com.gcd.mapper;


import com.gcd.model.Course;
import com.gcd.model.Reserve;
import com.gcd.model.searchModel.CourseSearchModel;
import org.apache.ibatis.annotations.Mapper;

import java.time.LocalDateTime;
import java.util.List;

@Mapper
public interface ReserveCourseMapper {
    List<CourseSearchModel> reserveCourse(CourseSearchModel course);

    //课程列表
    List<String> courseList();

    //查询上课时间
    LocalDateTime getClassTime(Integer courseId);

    //添加预约记录
    boolean addReserveRecord(Reserve reserve);

    //获取预约记录
    Integer reserveRecord(Integer memberId,Integer courseId);

    //判断会员是否是VIP
    Integer isVip(Integer memberId);
}
